from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.

def index(request):
    print(type(request))#<class 'django.core.handlers.wsgi.WSGIRequest'>
    print(request.path) #  /
    return HttpResponse("INDEX")

def login(request):
    # print(request.get_full_path)
    #login/?username=kangbazi&password=123456
    # print(request.get_raw_uri())
    # print(request.method)
    # for key,value in request.META.items(): #打印header头信息
    #     print("key:%s;values:%s" % (key,value))
    # print(request.is_secure())
    print(request.is_ajax())

    return HttpResponse("login")
